<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var obj = {
        name: "Object",
        sayName: function () {
          console.log(this.name);
        },
        innerObj: {
          name: "Inner Object",
          sayNameAgain: function () {
            var innerFunction = function () {
              console.log(this.name+'41');
            };
            innerFunction();
          },
        },
      };

      obj.sayName(); // Object
      obj.innerObj.sayNameAgain(); // 
    </script>
  </body>
</html>
